﻿using System;

namespace WebFormsMvp.Contrib.Views
{
    /// <summary>
    /// Adds the Cancel event to a View
    /// </summary>
    /// <typeparam name="TEventArgs">The type of the event args.</typeparam>
    public interface ICancelable<TEventArgs> where TEventArgs : EventArgs
    {
        /// <summary>
        /// Used to imply a form cancel-submit has occured
        /// </summary>
        event EventHandler<TEventArgs> Cancel;
    }
}
